package com.r2coding.system.api;

import com.r2coding.common.util.Result;
import com.r2coding.system.entity.WebsiteEntity;
import com.r2coding.system.service.WebsiteService;
import com.r2coding.system.vo.resp.WebsiteRespVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author:98k灬
 * @since:2022/07/17 14:19
 **/
@RestController
@RequestMapping("/api/website")
public class ApiWebsiteController {
    @Autowired
    private WebsiteService websiteService;

    /**
     * 查询网站配置信息
     *
     * @return 统一响应体
     */
    @GetMapping("/info")
    public Result info() {
        WebsiteRespVo resp = websiteService.info();
        return Result.ok(resp);
    }
}
